package example.simple_mindmap.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import example.simple_mindmap.domain.po.Message;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface MessageMapper extends BaseMapper<Message> {
    @Select("select * from t_message where rid = #{rid} order by state asc,createTime desc ")
    List<Message> selectMessageByRid(@Param("rid") Long rid);
}
